/* 
 * File:   SimulationBuffer.cpp
 * Author: cjjonker
 * 
 * Created on 23 januari 2013, 17:24
 */

#include "SimulationBuffer.h"

SimulationBuffer::SimulationBuffer()
:
d_currentindex(0)
{
    clearBuffer();
}

SimulationBuffer::~SimulationBuffer() {
    
}

void SimulationBuffer::clearBuffer()
{
    for (int i = 0; i < maxbufferlength; ++i)
    {
        vx[i] = 0;
        vy[i] = 0;
        fx[i] = 0;
        fy[i] = 0;
        rho[i] = 0;
    }
}

